<template>
	<a-form :model="formState" :rules="rules" ref="formRef">
	</a-form>
</template>

<script lang="ts" setup>
	import { ref, watch } from "vue";
	import cloneDeep from 'lodash/cloneDeep';
	
	const PROPS = defineProps({
		currentIteminfo: {
			type: Object,
			default() {
				return {};
			},
		},
	});
	
	const formRef = ref();
	const formState = ref < any > ({});
	const rules = {};
	
	watch(()=>PROPS.currentIteminfo,(obj)=>{
		formState.value = cloneDeep(obj);
	},{ immediate:true });
</script>

<style>
</style>